﻿using System.Collections.Generic;

namespace JNPF.Basics.Models.CodeBuilder.Template6
{
    /// <summary>
    /// 表单字段
    /// </summary>
    public class FormControlModel
    {
        /// <summary>
        /// 表单Tab
        /// </summary>
        public string tab { get; set; }
        /// <summary>
        /// 控件
        /// </summary>
        public string control { get; set; }
        /// <summary>
        /// 标题
        /// </summary>
        public string title { get; set; }
        /// <summary>
        /// 字段
        /// </summary>
        public string field { get; set; }
        /// <summary>
        /// 验证
        /// </summary>
        public string[] check { get; set; }
        /// <summary>
        /// 提示信息
        /// </summary>
        public string placeholder { get; set; }
        /// <summary>
        /// 跨列
        /// </summary>
        public int colspan { get; set; }
        /// <summary>
        /// 是否隐藏
        /// </summary>
        public int isHide { get; set; }
        /// <summary>
        /// 高度
        /// </summary>
        public int height { get; set; }
        /// <summary>
        /// 数据来源
        /// </summary>
        public string dataSource { get; set; }
        /// <summary>
        /// 数据来源 - 数据集合
        /// </summary>
        public string[] dataSourceList { get; set; }
        /// <summary>
        /// 数据来源 - 数据字典
        /// </summary>
        public string dataSourceDictionary { get; set; }
        /// <summary>
        /// 数据来源 - 数据字典IsTree
        /// </summary>
        public int dataSourceDictionaryIsTree { get; set; }
        /// <summary>
        /// 数据集合
        /// </summary>
        public string[] list { get; set; }
        /// <summary>
        /// 日期格式
        /// </summary>
        public string dateFormat { get; set; }
        /// <summary>
        /// 默认值
        /// </summary>
        public string defaults { get; set; }
        /// <summary>
        /// 文件格式
        /// </summary>
        public string[] extension { get; set; }
        /// <summary>
        /// 当前数据
        /// </summary>
        public string provider { get; set; }
        /// <summary>
        /// 单据规则
        /// </summary>
        public string billRule { get; set; }
        /// <summary>
        /// 编辑表格 - 表名
        /// </summary>
        public string table { get; set; }
        /// <summary>
        /// 编辑表格 - 字段列表  FormControlGridField
        /// </summary>
        public List<FormControlGridFieldModel> gridFieldControls { get; set; }
    }
}
